<template>
	<view>
		<activity-list :data="activities" @handleClick="handleSelfActive"></activity-list>
	</view>
</template>

<script>
	import {
		getALLSchoolActivity
	} from "@/api/supervise/work.js"
	export default {
		data() {
			return {
				activities: []
			}
		},
		methods: {
			aLLSchoolActivity() {
				getALLSchoolActivity().then(res => {
					this.activities = res.activities
				})
			},
			handleSelfActive(activity) {
				this.$tab.navigateTo('/pages/work/supervisionReport/report-content?id=' + activity.id + '&name=' + activity
					.activityName)
			}
		},
		onLoad() {
			this.aLLSchoolActivity()
		}
	}
</script>

<style lang="scss" scoped>
</style>